package com.lanyan.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.List;
import com.lanyan.system.domain.Setting;

/**
 * 设置Mapper接口
 *
 * @author lanyan
 * @date 2024-11-26
 */
public interface SettingMapper extends BaseMapper<Setting>
{
    /**
     * 查询设置
     *
     * @param settingId 设置主键
     * @return 设置
     */
    public Setting selectSettingBySettingId(Long settingId);

    /**
     * 查询设置列表
     *
     * @param setting 设置
     * @return 设置集合
     */
    public List<Setting> selectSettingList(Setting setting);

    /**
     * 新增设置
     *
     * @param setting 设置
     * @return 结果
     */
    public int insertSetting(Setting setting);

    /**
     * 修改设置
     *
     * @param setting 设置
     * @return 结果
     */
    public int updateSetting(Setting setting);

    /**
     * 删除设置
     *
     * @param settingId 设置主键
     * @return 结果
     */
    public int deleteSettingBySettingId(Long settingId);

    /**
     * 批量删除设置
     *
     * @param settingIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSettingBySettingIds(Long[] settingIds);

    List<Setting> getGroup();
}
